#pragma once
#ifndef __GEOMAGNETISM_H__
#define __GEOMAGNETISM_H__
#ifdef USE_GEOMAGNETISM
#include <stdbool.h>
/**
 * @brief 
 * 
 */
bool geomagnetism_probe(void);

float get_geomagnetism_angle(void);
float get_geomagnetism_pitch(void);
float get_geomagnetism_roll(void);

void geomagnetism_start(void);
void geomagnetism_stop(void);
void geomagnetism_process(void);
bool geomagnetism_need_calibration(void);
void geomagnetism_get_range(float *azimuth, float *pitch, float *roll);
void geomagnetism_clear_range(void);
#endif //!<USE_GEOMAGNETISM
#endif //!<  __GEOMAGNETISM_H__
